Skip to content

Use actions/checkout for RPM/DEB build configuration in deployment workflow - #1096

Merged
swissspidy merged 3 commits into
mainfrom
fix/deployment-checkout
Aug 3, 2026
Merged

Use actions/checkout for RPM/DEB build configuration in deployment workflow#1096
swissspidy merged 3 commits into
mainfrom
fix/deployment-checkout

Conversation

@swissspidy

@swissspidy swissspidy commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary by CodeRabbit

  • Chores
    • Updated RPM and DEB packaging workflows to source packaging scripts from the bundled repository during builds.
    • Removed external script downloads from the packaging process.
    • Build and verification steps remain unchanged.

Copilot AI review requested due to automatic review settings August 3, 2026 09:09
@swissspidy
swissspidy requested a review from a team as a code owner August 3, 2026 09:09
@swissspidy swissspidy added scope:testing Related to testing scope:distribution Related to distribution labels Aug 3, 2026
@coderabbitai

coderabbitai Bot commented Aug 3, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@swissspidy, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 34 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 3a41966e-2fcb-48d1-bbc9-d6a0611d88ee

📥 Commits

Reviewing files that changed from the base of the PR and between 8371482 and cf36380.

📒 Files selected for processing (1)
  • .github/workflows/deployment.yml
📝 Walkthrough

Walkthrough

The RPM and DEB packaging jobs now check out the wp-cli-bundle repository into bundle and copy packaging scripts from bundle/utils instead of downloading them with wget.

Changes

Packaging workflow updates

Layer / File(s) Summary
Use local bundle scripts
.github/workflows/deployment.yml
The RPM and DEB jobs check out the bundle repository and copy their packaging scripts from bundle/utils. Build and verification steps remain unchanged.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: copilot, schlessera

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main workflow change: using actions/checkout for RPM and DEB build configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/deployment-checkout

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the deployment workflow to source the RPM/DEB packaging configuration from a checked-out copy of the bundle repository, instead of downloading those files from raw.githubusercontent.com.

Changes:

  • Add an additional actions/checkout step to place the bundle repository under bundle/ during RPM and DEB build jobs.
  • Replace wget downloads of RPM/DEB build configuration files with local cp from the checked-out bundle/utils/ paths.
Suppressed comments (1)

.github/workflows/deployment.yml:365

  • Same as the RPM job: this checkout relies on implicit defaults for which repo/ref to fetch, even though the workspace root is a different checked-out repository (wp-cli/builds). Explicitly setting repository/ref here makes it clear that bundle/utils/wp-cli-updatedeb.sh is coming from the workflow’s source repo at the triggering commit.
      - name: Check out bundle repository
        uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
        with:
          path: bundle


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/deployment.yml
@swissspidy swissspidy added this to the 3.0.0 milestone Aug 3, 2026

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/deployment.yml:
- Around line 275-278: Set persist-credentials to false on the github.repository
checkout steps at .github/workflows/deployment.yml lines 275-278 and 361-364,
which are used only for copying bundle files. Leave the ACTIONS_BOT credentials
enabled on the wp-cli/builds checkout because later steps push gh-pages.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 8cc9b5ad-8563-46e9-ba4b-3f7444aa69b9

📥 Commits

Reviewing files that changed from the base of the PR and between 3121011 and 8371482.

📒 Files selected for processing (1)
  • .github/workflows/deployment.yml

Comment thread .github/workflows/deployment.yml
@codecov

codecov Bot commented Aug 3, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@swissspidy
swissspidy merged commit 9b1a001 into main Aug 3, 2026
66 checks passed
@swissspidy
swissspidy deleted the fix/deployment-checkout branch August 3, 2026 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope:distribution Related to distribution scope:testing Related to testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants